package com.ruoyi.manage.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.manage.DTO.ChargingDTO;
import com.ruoyi.manage.strategy.BillingPolicies;
import com.ruoyi.manage.strategy.Impl.BasicBillingPolicy;

import java.math.BigDecimal;

/**
 * @Title:
 * @BelongProjecet online-car-hailing
 * @BelongPackage com.ruoyi.manage.controller
 * @Description:
 * @Copyright
 * @Author: 马朝斌
 * @Date: 2024-07-03 16:03
 * @Version V1.0
 */
public class TestController {
    public static void main(String[] args) {
        ChargingDTO chargingDTO = new ChargingDTO();
        chargingDTO.setOrderPrice(new BigDecimal("15.00"));
        BillingPolicies billingPolicies = new BasicBillingPolicy();
        AjaxResult ajaxResult = billingPolicies.billingPolicies(chargingDTO);
        System.out.println(ajaxResult);;
    }
}
